package sessionbeans;

import entities.*;
import javax.ejb.Remote;
import java.util.List;

@Remote
public interface NotificationBeanRemote {

	/**
	 * 
	 * @param userId the user whose friendship requests have been accepted
	 * @return list of all accepted friendship requests (deletes them from the database after retrieval)
	 */
	List<PendingFriendship> getAcceptedPendingFriendships(String userId);
	
	/**
	 * 
	 * @param userId the user whose help requests have been answered
	 * @return a list of all answered help requests (also deletes the refused requests)
	 */
	List<HelpRequest> getAnsweredHelpRequests(String userId);
	
	/**
	 * 
	 * @param userId the user whose ability adding requests have been accepted
	 * @return a list of all accepted ability adding requests (deletes them from the database after retrieval)
	 */
	List<AskForAdding> getAcceptedAbilityRequests(String userId);
	
}
